<?php if(!defined('IN_PISCES')){exit('Access Denied.');}?>
			
			<div id="content_body" class="fl">
				<div class="piece piece_wb" >
					<div class="piece_hd" >
						<b class="hl"></b>
						<b class="hr"></b>
					</div>
					<div class="piece_bd">
{if $this->data['is_master']}
<div class="pub_box" id="publish_me">
	<div class="pub_top">
		<ul id="pub_tab_change">
			<li class="c"><a href="javascript:;" class="tab_say_say"><span>说说</span></a></li>
		</ul>
	</div>
	<!-- 发表说说 -->
	<form method="post" id="u_zone_form">
	<div class="pub_edit r5 pub_area clearfix " id="pub_say_say">
		<div class="pub_content clearfix">
			<textarea name="content" id="share_content" length="140" position="0" class="PUB_TXT pub_txt fl rl5" ></textarea>
			<input id="pub_submit" type="button" class="pub_btn fl rr5 pub_submit" value="发表" />
		</div>
		<div class="pub_ext clearfix">
			<div class="pub_opt fl">
				<a href="javascript:;" style="background-position:1px -98px;" class="add_face_new">表情</a>
			</div>
			<div class="pub_out fr" style="margin-top:5px;"></div>
		 </div>    
		 <ul class="pub_img clearfix r3 fl" style="display:none;">
		</ul>
	</div>   
	</form>
</div>

	<ul id="zone_tab" class="zone_tab clearfix">
	  <li class="zt_f"><a href="{url('User','Talk', array('type'=>'all'))}">全部</a></li>
	  <li class="zt_f {if $this->data['type']=='me'}c{/if}"><a href="{url('User','Talk', array('type'=>'me'))}">我发表的</a></li>
	  <li class="zt_f {if $this->data['type']=='atme'}c{/if}"><a href="{url('User','Talk', array('type'=>'atme'))}">@我的</a></li>
	  <li class="zt_f {if $this->data['type']=='comments'}c{/if}"><a href="{url('User','Talk', array('type'=>'comments'))}">评论我的</a></li>
	  <li class="zt_f {if $this->data['type']=='all'}c{/if}"><a href="{url('User','Talk', array('type'=>'all'))}">随便逛逛</a></li>
	</ul>
{/if}
	<div id="talk_list_box" >
		{if $this->data['type'] == 'me'}
			{component frontend ume}
		{elseif $this->data['type'] == 'atme'}
			{component frontend uatme}
		{elseif $this->data['type'] == 'comments'}
			{component frontend ucomments}
		{elseif $this->data['type'] == 'all'}
			{component frontend uall}
		{elseif $this->data['type'] == 'weibo'}
			{component frontend uweibo}
		{/if}
	</div>
	</div>
	<div class="piece_ft" >
		<b class="fl"></b>
		<b class="fr"></b>
	</div>
</div>
</div>

<script>
VTUI.ShareHtml = function(data){
	var html = '<ul class="t_l"><li class="t_f"><div class="t_tag"><a target="_blank" href="#content_top" class="t">'+data.created+'</a></div><div class="hd sns-pic"><a href="'+data.home+'" uid="'+data.user_id+'" class="GUID" target="_blank"><img alt="'+data.username+'" src="'+data.logo+'" class="avt icard r5"></a><div uid="2" class="followdiv"></div></div><div class="tk"><div class="inf"><a class="icard n gc" alt="'+data.username+'" href="'+data.home+'" target="_blank">'+data.username+'</a><span></span></div><p class="sms">'+data.content+'</p><div class="tl"></div></div>';
	return html;
}

VTUI.WeiboCommentHtml = function(data){
	return '<li id="COMMENT_'+data.id+'" class="c_f" style=""><a target="_blank" href="'+data.home+'" title="'+data.username+'"><img width="36" alt="'+data.username+'" src="'+data.logo+'" uid="'+data.user_id+'" class="GUID avt icard"></a><p class="sms"><a target="_blank" href="'+data.home+'" title="'+data.username+'" uid="'+data.user_id+'" class="GUID n icard">'+data.username+'</a>回复：'+data.content+'<span>（'+data.created+'）</span></p><div><a onclick="$.Reply_Comment(this);" cid="'+data.id+'" uname="'+data.username+'" href="javascript:;" w="f" class="rpl">回复</a></div></li>';
}

function UserTipFollowHandler(obj, result){
	if(result.data.status == 1)
	{
		$(obj).removeClass('addfo').addClass('fo_ok');
	}
}
jQuery(function($){
	$('#talk_list_box .pic img').click(function(){
		$(this).parent().hide().parent().next('.pic_b').children('li').show();
	});
	$('#talk_list_box .pic_b_bd img').click(function(){
		$(this).parent().parent().hide().parent().prev('.pic').children().show();
	});
	$('#talk_list_box .addfo').click(function(){
		$.User_Follow($(this).parent().attr('uid'),this, UserTipFollowHandler);
	});
	$('#pub_submit').click(function(){
		$.Weibo_Save(this);
	});
	$.Pub_Count_Bind($("#share_content").get(0));
});
</script>